import request from '@/config/axios'

// 获得奖品列表
export const getawardlist = async (params) => {
  return await request.get({ url: '/sys/award/page',params })
}
// 新增奖品列表
export const addaward = async (data) => {
  return await request.post({ url: '/sys/award/save',data })
}
// 更新奖品列表
export const updateaward = async (data) => {
  return await request.post({ url: '/sys/award/save',data })
}
// 获得活动详情
export const getaward = async (params) => {
  return await request.get({ url: '/sys/award/getAwardById',params })
}
// 删除活动
export const deleteaward  = async (params) => {
  return await request.delete({ url: 'sys/award/delete',params})
}
// 选择商品   pageNo=1&pageSize=10&tabType=0&name=
export const selelctproduct  = async (params) => {
  return await request.get({ url: '/product/spu/page',params})
}
// 选择活动   pageNo=1&pageSize=10&tabType=0&name=
export const selelctactivity = async (params) => {
  return await request.get({ url: '/sys/prize/page',params})
}
// 选择优惠卷  pageNo=1&pageSize=10&tabType=0&name=
export const selelcCertificate   = async (params) => {
  return await request.get({ url: '/promotion/coupon-template/page',params})
}


